# encoding: utf-8
# @project: st2111 
# @file: 05_url_decode.py
# @time: 2023/3/30 14:06
# @author: abcque
# @license: (C) Copyright 2013-2021
# @contact: abcque@outlook.com
# @IDE: PyCharm
# @desc:
from urllib.parse import unquote

if __name__ == "__main__":
    url = "https://www.baidu.com/s?wd=%E9%99%95%E8%A5%BF%E4%BA%A4%E9%80%9A%E8%81%8C%E4%B8%9A%E6%8A%80%E6%9C%AF%E5%AD%A6%E9%99%A2"

    result = unquote(string=url)
    print(result)
